package edu.princeton.cogsci.wn.ascii;

/** This class models the WordNet library type Synset. It has package-private
 *  security because it should only be used within the Ascii WordNet
 *  implementation.
 */

class CSynset
{
  int hereiam;      // The synset byte offset.
  int sstype;       // The synset type (same as pos but includes satellites)
  int fnum;         // The category.
  int pos;          // The part of speech.
  int wcount;       // The count of synonyms.
  String[] words;   // The synonyms.
  int[] lexid;      // The lexical ID numbers of the synonyms.
  int[] wnsns;      // The WordNet sense numbers of the synonyms.
  int whichword;    // Which word was searched for.
  int ptrcount;     // The count of relations.
  int[] ptrtyp;     // The relation types.
  int[] ptroff;     // The relation synset byte offsets.
  int[] ppos;       // The relation parts of speech.
  int[] pto;        // Which word in the destination synset for lex relations.
  int[] pfrm;       // Which word in the source synset for lexical relations.
  int fcount;       // The count of verb frames.
  int[] frmid;      // The verb frame IDs.
  int[] frmto;      // Which word the verb frame applies to for lex verb frms.
  String defn;      // The gloss.
  String headword;  // The head word form if this is a satellite synset.
  int headsense;    // The head word lex id if this is a satellite synset.

  static native CSynset lookup( int pos, int offset, String word );
}  
